package HomeWorkNewYear;

public class ooDay01Teacher extends ooDay01Person{
    double salary ;
    ooDay01Teacher() {}
    ooDay01Teacher(String name,int age,String address,double salary){
        super(name,age,address);
        this.salary=salary;
    }
    void teach(){
        System.out.println(name+"正在讲课");
    }
}
